package codequity.three.demo38;

public class Person {
    //姓名
    private String name;

    //家庭
    private Home home;

    public Person(String name) {
        this.name = name;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public Home getHome() {
        return home;
    }

    public void setHome(Home home) {
        this.home = home;
    }

    public static class Home {
        //家庭地址
        private String address;

        //家庭电话
        private String tel;

        public Home(String address, String tel) {
            this.address = address;
            this.tel = tel;
        }


        public String getAddress() {
            return address;
        }

        public void setAddress(String address) {
            this.address = address;
        }

        public String getTel() {
            return tel;
        }

        public void setTel(String tel) {
            this.tel = tel;
        }
    }
}


